
SRCS= \
	script/iplayer.py \
	script/default.py 
DATE=`date +%Y%m%d%H%M`

zip:
	cd plugin; zip ../xbmc-iplayer-plugin.zip -r . \
		-i /*.xml -i /*.py -i /*.jpg -i /*.png -i *.tbn \
		-x /.svn/* -x /iplayer_cache/* -x /iplayer_http_cache/*;
	#zip xbmc-iplayer-plugin.zip -r lib -x /.svn -i /*.py;
	cp xbmc-iplayer-plugin.zip xbmc-iplayer-plugin-$(DATE).zip

	cd script; zip ../xbmc-iplayer-script.zip -r . -x /.svn -i /*.xml -i /*.py;
	cp xbmc-iplayer-script.zip xbmc-iplayer-script-$(DATE).zip
	
tgz:
	tar cvzf xbmc-iplayer.tar.gz $(SRCS) $(UI_RESOURCES)
	cp xbmc-iplayer.zip xbmc-iplayer-$(DATE).tar.gz

linux-unzip:
	unzip -o xbmc-iplayer.zip -d $(XBMC_HOME)/scripts/iplayer
	unzip -o xbmc-iplayer-plugin.zip -d $(XBMC_HOME)/plugins/iplayer

linux-cp:
	cp $(SRCS) $(XBMC_HOME)/scripts/iplayer
